package team.ttorder.ttorder.service;

import java.util.List;

import team.ttorder.ttorder.javabean.PageBean;
import team.ttorder.ttorder.model.Order;
import team.ttorder.ttorder.model.OrderDetail;

public interface IOrderService {
	
	public Order getOrderById(Integer id);

	public void payComplete(Integer id)throws Exception;

	public void deleteOrder(Integer id);

	public List<OrderDetail> getOrderDetailByOrderId(Integer id);


	public void addOrder(Order order);

	public Order getId(int tableId);

	public void addOrderDetail(OrderDetail orderDetail);

	public PageBean<Order> findOrders(int pageNum, int pageSize);

}
